[XENAPI] Fix wrong vars being extracted from reading python cfg
authorAlastair Tse <atse@xensource.com>
Fri, 6 Oct 2006 11:02:29 +0000 (12:02 +0100)
committerAlastair Tse <atse@xensource.com>
Fri, 6 Oct 2006 11:02:29 +0000 (12:02 +0100)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/scripts/xapi.py

index 41f10aca19dd34279311198aef6b0264fd33fdda..922b47ca905aa040eca84193e3f5bbbf9ad42b49 100644 (file)
@@ -67,9 +67,9 @@ def _stringify(adict):
     return dict([(k, str(v)) for k, v in adict.items()])
 
 def _read_python_cfg(filename):
-    cfg_globals = {}
-    execfile(filename, cfg_globals, {})
-    return cfg_globals
+    cfg = {}
+    execfile(filename, {}, cfg)
+    return cfg
 
 #
 # Actual commands